package com.zrar.ak.gkpt.dao;

import com.zrar.ak.gkpt.model.bo.BusinessBidPurchaseBidBO;
import com.zrar.ak.gkpt.model.bo.BusinessBidPurchaseBidEquipmentBO;
import com.zrar.ak.gkpt.model.bo.BusinessSchemeSoftwareHardwareInfoBO;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;
/**
 * @ClassName: IBusinessBidPurchaseBidEquipmentDao
 * @Description 招标采购-软硬件表Dao层
 * @Author HuangKeXin
 * @Time 2020/04/10
 */
@Repository("businessBidPurchaseBidEquipmentDao")
public interface IBusinessBidPurchaseBidEquipmentDao  extends Mapper<BusinessBidPurchaseBidEquipmentBO> {

    int deleteById(String id);


        int insertInfo(List<BusinessBidPurchaseBidEquipmentBO> softwareHardwareInfoBOList);

        int updateInfo(List<BusinessBidPurchaseBidEquipmentBO> softList);

    int queryByType(Map map);

    List<BusinessBidPurchaseBidEquipmentBO> queryAllByBasicsId(String basicsId);


//@Select(("SELECT COUNT(1) AS TOTAL FROM BUSINESS_BID_PURCHASE_EQUIPMENT WHERE IS_DELETE='0' AND UNIT_ID=#{unitId}"))
//Integer queryExistCountByBusinessBidEquipmentUnitId(String unitId);
//
//    @Update(" UPDATE BUSINESS_BID_PURCHASE_EQUIPMENT SET IS_DELETE='1' WHERE IS_DELETE='0' AND UNIT_ID = #{unitId}")
//    void deleteBusinessBidEquipmentByUnitId(String unitId);


    }
